<template>
  <div>
     <div class="rect"></div>
    <div class="wrap">
      <div class="qk-title flex-row-center-center">
        <img src="@/assets/qknum.png" alt width="30" height="30" />
        <div class="qk-title-num">气库状态</div>
      </div>
      <div style="margin-top:4px" class="flex-row-center-center">
        <div class="qknum-content" >
          <div class="qknum-content-top"></div>
              <div class="qknum-content-value flex-row-center-center" :style="kqState =='异常'?'color:#cc0000':'color:#19be6b'"
              @click="toShowEventType"
              >{{kqState}}</div>
          <div class="qknum-content-bottom"></div>
        </div>
        <div class="qknum-content-unit"></div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
    data(){
        return{
            
        }
    },
    props:{
      kqState:String,
      showJz:Boolean,
    },
    mounted(){
        
    },
    methods:{
      toShowEventType(){
        this.$emit('show-to-event',true)
      }
    }
};
</script>
<style  scoped>
.qknum-content-value:hover{
   cursor: pointer;
}
.qknum-content-unit {
  color: rgba(35, 125, 191, 100);
  font-size: 20px;
  text-align: left;
  font-family: SourceHanSansSC-regular;
}
.qknum-content-value {
  width: 100%;
  height: 45px;
  line-height: 20px;
  text-align: center;
  background: transparent;
  font-size: 48px;
  z-index: 20;
  /* border: 1px solid  rgba(9, 48, 104, 100); */
}


.wrap {
  width: 100%;
  height: 151px;
  line-height: 20px;
  background-color: transparent;
  color: rgba(16, 16, 16, 100);
  font-size: 14px;
  text-align: center;
  box-shadow: 0px 2px 6px 0px rgba(255,157,160, 60);
  font-family: Roboto;
  border: 1px solid #cc0000;
}
</style>